home *** CD-ROM | disk | FTP | other *** search
- //testint.cpp -- simple test routine for GetPrivateProfileInt
- #include "profiles.h"
- #include <string.h>
- #include <iostream.h>
-
- void main()
- {
- char app[81];
- char key[81];
- WORD val ;
-
- //-- repeatedly test getting a specific key
- for (;;)
- {
- cout << "Application :";
- cin.get(app,sizeof(app));
- cin.ignore();
- cout << "Key :";
- cin.get(key,sizeof(key)) ;
- cin.ignore();
- val = GetPrivateProfileInt
- (app,key,12345,"test.ini");
- cout << "val : " << val << "\n" ;
- }
- }
-
- //-- end of testint.cpp